export default class Calc {
  constructor() {

  }

  static accAdd(arg1, arg2) {
    var result = Number(arg1) + Number(arg2);
    return parseFloat(parseFloat(result).toFixed(3));
  }

  static toFixed2(data) {
    return (1 * data).toFixed(2)
  }

  static reserveFixed2(data) {
    return parseFloat((1 * data).toFixed(2))
  }
}
